import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'

// https://vite.dev/config/
export default defineConfig({
  server: {
    proxy: {
      '/api': {
        target: 'http://apifoxmock.com/ml/4599451-4249023-default',
        changeOrigin: true,
      }
    }
  },
  plugins: [react()],
})
